package com.example.webflux.bean;

import lombok.*;

@Data
@Builder
@AllArgsConstructor
public class User {
    private Integer userId;
    /**
     * 姓名
     */
    private String name;
    /**
     * 描述
     */
    private String desc;

    private Integer age;

    public User() {
    }

    public User(Integer userId) {
        this.userId = userId;
    }

    public User userGrowth(User user){
        user.setAge(user.getAge()+1);
        return user;
    }

    public boolean grap(User user){
        return user.getAge()>20?true:false;
    }
}
